/* --------------------------------
   RESET 与全局
-------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    font-family: "Microsoft Yahei", sans-serif;
    color: #333;
    background-color: #f7f7f7;
    line-height: 1.6;
  }
  img {
    display: block;
    max-width: 100%;
  }
  ul, li {
    list-style: none;
  }
  
  /* 主题色示例：上虞水乡灰蓝+稻田金黄 */
  :root {
    --primary-color: #476c8a; /* 偏灰蓝色 */
    --accent-color: #e8b94a;  /* 偏金黄 */
  }
  
  /* --------------------------------
     头部导航
  -------------------------------- */
  /****************************************
 * 导航区精心设计——体现“哑目连”与上虞文化
 ****************************************/

/* 1. 头部整体 */
.site-header {
    position: sticky;          /* 或 fixed; 若想始终固定在顶端 */
    top: 0;
    z-index: 999;             /* 确保导航浮在内容上 */
    background: linear-gradient(45deg, #333, #444);
    /* 为了便于看装饰，可在此放一张半透明背景图，如传统纹样/戏曲元素 */
    /* background: url("../assets/images/nav_bg_pattern.png") repeat; */
    /* 也可在 nav-decoration 中使用背景图 */
  }
  
  /* 2. 导航装饰(可选) */
  .nav-decoration {
    height: 6px; /* 或者更大的高度，放置传统纹样条 */
    background: url("../assets/images/border_yamulian.png") repeat-x;
    /* 这里可以是一条云纹、卷草纹等戏曲元素图案 */
    /* 如果觉得影响美观，可去掉 */
  }
  
  /* 3. 内部布局 */
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
  }
  
  /* 4. LOGO区域 */
  .site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .logo-img {
    width: 40px;    /* 根据LOGO大小调整 */
    height: 40px;
    object-fit: contain;
  }
  .logo-text {
    font-size: 1.4rem;
    color: #fff;
    font-family: "STXingkai", "KaiTi", sans-serif; /* 若有书法风字体 */
    /* 加一点文字阴影或金色渐变可更有戏曲感 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  
  /* 5. 导航菜单 */
  .site-nav ul {
    display: flex;
    gap: 1rem;
  }
  .site-nav li {
    list-style: none;
  }
  .nav-link {
    position: relative;
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  /* 悬停时：渐变背景或文字变色 */
  .nav-link:hover {
    background: linear-gradient(to right, #444, #555);
  }
  /* 当前页面或选中态 */
  .nav-link.active {
    background: linear-gradient(to right, #e8b94a, #e74c3c);
    /* 或者添加一条底线表现“高亮” */
    color: #fff; /* 确保文字依然可读 */
  }
  
  /* 6. 响应式：小屏幕合并或汉堡菜单 */
  @media screen and (max-width: 768px) {
    .nav-inner {
      flex-wrap: wrap;          /* 让 LOGO + 导航可以换行 */
    }
    .site-nav ul {
      flex-direction: column;   /* 导航垂直排列 */
      width: 100%;
      margin-top: 0.5rem;
    }
    .nav-link {
      padding: 0.6rem 1rem;
    }
  }
  
  /* --------------------------------
     Hero Banner (首页)
  -------------------------------- */
  .hero-banner {
    position: relative;
    height: 70vh; /* 可按需调整 */
    background: url("../assets/images/shangyu_banner.jpg") center/cover no-repeat fixed;
  }
  .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
  }
  .hero-content {
    position: relative;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: background 0.3s;
  }
  .btn-primary:hover {
    background-color: #c69034;
  }
  
  /* --------------------------------
     主体内容区
  -------------------------------- */
  .main-content {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
    position: relative;
    /* 如果想要在body底部加轻水印，可使用 z-index 让内容层在上方 */
  }
  .main-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    font-weight: bold;
  }
  .main-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 0.5rem;
    background: linear-gradient(to right, var(--accent-color), #e74c3c);
  }
  .main-content p {
    margin-bottom: 1rem;
  }
  .main-content ul {
    list-style: inside disc;
    margin-left: 1rem;
    margin-bottom: 1rem;
  }
  
  /* --------------------------------
     时间线 (origin.html)
  -------------------------------- */
  .timeline ul {
    padding-left: 0;
  }
  .timeline li {
    padding: 0.5rem 0;
    border-left: 2px solid #aaa;
    margin-left: 1rem;
    position: relative;
  }
  .timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0.8rem;
    width: 10px;
    height: 10px;
    background-color: #aaa;
    border-radius: 50%;
  }
  .year {
    font-weight: bold;
    margin-right: 0.5rem;
    color: var(--primary-color);
  }
  
  /* --------------------------------
     轮播 (scenes.html)
  -------------------------------- */
  .slider-container {
    position: relative;
    max-width: 700px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }
  .slider {
    display: flex;
    transition: transform 0.5s ease;
  }
  .slider img {
    width: 100%;
    flex-shrink: 0;
  }
  .prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-radius: 4px;
  }
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  
  /* 画廊 */
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }
  .gallery-item {
    width: calc(33.33% - 1rem);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }
  .gallery-item img {
    transition: transform 0.3s;
  }
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* --------------------------------
     折叠面板 (inherit.html)
  -------------------------------- */
  .accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .accordion-header {
    width: 100%;
    text-align: left;
    background-color: #eee;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
  }
  .accordion-header:hover {
    background-color: #ddd;
  }
  .accordion-content {
    display: none;
    padding: 1rem;
    background-color: #fff;
  }
  
  /* --------------------------------
     致谢页面 (thanks.html)
  -------------------------------- */
  .thanks-image {
    text-align: center;
    margin: 2rem 0;
  }
  .thanks-image img {
    max-width: 400px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }
  .thanks-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
  }
  
  /* --------------------------------
     页脚
  -------------------------------- */
  .site-footer {
    text-align: center;
    background: linear-gradient(45deg, #333, #444);
    padding: 1rem;
    color: #ccc;
    margin-top: 2rem;
  }
  
  /* --------------------------------
     在Body底部添加轻纹理水印(可选)
  -------------------------------- */
  body::before {
    /* 若无需水印，可注释掉此段 */
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: url("../assets/images/pattern_shangyu.png") repeat;
    opacity: 0.03; 
    pointer-events: none;
    z-index: 0;
  }
  
  /* --------------------------------
     响应式
  -------------------------------- */
  @media screen and (max-width: 768px) {
    .site-header {
      flex-wrap: wrap;
    }
    .site-nav ul {
      flex-direction: column;
    }
    .hero-banner {
      height: 50vh;
    }
    .hero-content h1 {
      font-size: 1.8rem;
    }
    .gallery-item {
      width: calc(50% - 1rem);
    }
  }
  @media screen and (max-width: 480px) {
    .gallery-item {
      width: 100%;
    }
  }
  